﻿using System;
using System.Diagnostics;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.WindowsAzure.ServiceRuntime;

namespace EvaluacionWebRole
{
    public class WebRole : RoleEntryPoint
    {
        public override bool OnStart()
        {
            // For information on handling configuration changes
            // see the MSDN topic at http://go.microsoft.com/fwlink/?LinkId=166357.

            return base.OnStart();

        }
        public override void Run()
        {
            foreach (var item in RoleEnvironment.CurrentRoleInstance.InstanceEndpoints)
            {
                Trace.WriteLine(string.Format("{0} -> {1}", item.Key, item.Value.IPEndpoint.ToString()));
            }
            base.Run();
        }

        //public override void Run()
        //{
        //    base.Run();
        //}

    }
}